import Vue from 'vue'
import Vuex from 'vuex'


import event from './modules/event'

//用户数据
import user from './modules/user'
import category from './modules/category'
import goods from './modules/goods'
import address from './modules/address'
import cart from './modules/cart'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {},
	mutations: {},
	actions: {},
	modules: {
		event,
		user,
		category,
		goods,
		address,
		cart
	}
})

Vue.prototype.$store = store

export default store
